package cn.mldn.homework.mvcOutputHelloWord.BIZ;

import cn.mldn.homework.mvcOutputHelloWord.DAO.DAO;

public class HelloWorldBiz implements BIZ
{
	private DAO dao;

	@Override
	public String operate()
	{
		try
		{
			return this.dao.getData();
		} catch (Exception e)
		{
			throw new RuntimeException(e.getMessage());
		}
	}

	@Override
	public void setDAO(DAO dao)
	{
		this.dao = dao;

	}
}